<?php

include_once "DB.class.php";

        $data = $_POST;

        $db = new DB("127.0.0.1","","root","root");

        $res = $db->getAdd('news',$data);

        if($res){
            echo 'ok';
            header("location:getShow.php",5);
        }else{
            echo 'no';
        }





?>